require.config({
    paths: {
        jquery: 'jquery-3.1.1',
        commonObj:'commonobj',
        SelfWinsow:'selfwinsow'       
    }
})
 
require(['jquery','commonObj'], function($,commonObj) {
   // alert($().jquery);
  // commonObj.objAlert();

  //var pageSelector="#index-page";
  var _this=null;
  commonObj.loadPage();
 
/*
function showName(){ //函数也是一个对象 
alert(this.name); 
} 

function showAge(){ 
alert(this.age); 
} 
*/

 $('#main').on("click",commonObj.changePageIndex);
 $('#chart').on("click",commonObj.changePageIndex);
 $('#myMoney').on("click",commonObj.changePageIndex);
 $('#user').on("click",commonObj.changePageIndex); 
 $('#accout-btn').on("click",function(){commonObj.changePage('#main-page','#account-page');});
 
 $('#account-page').on('click','.close-icon',function(){commonObj.changePage('#account-page','#main-page');});
 $('#account-page').on('click','.left-back-icon',commonObj.closeDetailPage);
 //$('.close-icon').on("click",function(){commonObj.changePage('#account-page','#main-page');});
 //$('.left-back-icon').on("click",commonObj.closeDetailPage);
 
 $('#account-class').find('span').on('click',commonObj.changeButton_0);
 $('#calculator').find('input').on('click',commonObj.calculatorJsq);
 $('#voice-icon').on("click",function(){commonObj.changeSinglePage('#voice-page',true);});
 $('#voice-close-icon').on("click",function(){commonObj.changeSinglePage('#voice-page',false);});
 $('#add-save-btn').on("click",commonObj.saveMes);
 $('#account-img').find('li').on("click",commonObj.changeImg);
 $('#screenName').on("click",function(){
 	$("#screenName").blur(); 
 	$("#calculator").show(); });
 $("#remarkInput").focus( function(){$("#calculator").hide(); });
//char-界面
$('.class-btn').find('div').on("click",commonObj.changeButton_1);
//$('.out-li').on("click",commonObj.createDetailPage);
$('.outlay-list').on('click','.out-li',commonObj.createDetailPage);

$('#chg-save-btn').on("click",commonObj.saveDetailMes);	
$('#del-btn').on("click",commonObj.delMes);	
$('#user-img').on("click",function(){commonObj.changeSinglePage('#login-page',true);});
$('.blue-back-icon ').on("click",function(){commonObj.changeSinglePage('#login-page',false);});
$('.submit-btn').on("click",commonObj.testLoginInput);












});